﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Content.Pipeline;
using Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler;

using GUILibrary;

namespace GUIContentExtension
{
    [ContentTypeWriter]
    public class GUIScreenManagerTypeWriter : ContentTypeWriter<GUIScreenManager>
    {
        protected override void Write(ContentWriter output, GUIScreenManager value)
        {
            output.Write(value.StartingScreen);
            output.WriteObject<Dictionary<string, string>>(value.ScreenNames);
        }

        public override string GetRuntimeReader(TargetPlatform targetPlatform)
        {
            // TODO: change this to the name of your ContentTypeReader
            // class which will be used to load this data.
            return typeof(GUIScreenManagerContentReader).AssemblyQualifiedName;
        }
    }
}
